<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>首页</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />

</head>
<body>
<section class="aui-grid">
            <div class="aui-row">
                <div class="aui-col-xs-6">
                    <div class="aui-badge">88</div>
                    <i class="aui-iconfont aui-icon-home"></i>
                    <div class="aui-grid-label">首页</div>
                </div>
                <div class="aui-col-xs-6">
                    <i class="aui-iconfont aui-icon-gear"></i>
                    <div class="aui-grid-label">设置</div>
                </div>

            </div>
        </section>
</body>
<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript">
apiready = function() {
    fnInitEventListenner();//退出键添加提示框

};

function fnInitEventListenner() {//退出键提示框
    api.addEventListener({
        name: 'keyback'
    }, function(ret, err) {
        api.confirm({
            title: '提示',
            msg: '是否退出应用',
            buttons: ['确定', '取消']
        }, function(ret, err) {
        	if (ret.buttonIndex == 1) {
        		api.closeWidget();
        	}
        });
    });
}

function fnOpenPersonCenterWin() {
    var isLogin = false;
    if (isLogin) {;
    } else {
        api.openWin({
            name: 'login',
            url: './login.html',
            pageParam: {
                name: 'test'
            }
        });
    }
}
function fnOpenMemberFriendWin() {

        api.openWin({
            name: 'member_friend',
            url: './member_friend.html',
            pageParam: {
                name: 'test'
            }
        });

}
function fnOpenTaskIngWin() {

        api.openWin({
            name: 'task_ing',
            url: './task_ing.html',
            pageParam: {
                name: 'test'
            }
        });
}
function fnOpenMainWin() {

        api.openWin({
            name: 'main',
            url: './main.html',
            pageParam: {
                name: 'test'
            }
        });
}
function fnOpenTaskCenterWin() {

        api.openWin({
            name: 'taskcenter',
            url: './task_center.html',
            pageParam: {
                name: 'test'
            }
        });
}

</script>
</html>
